<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateClueCallLogsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('clue_call_logs', function (Blueprint $table) {
            $table->increments('id');
            $table->unsignedInteger('clue_id');
            $table->text('content')->nullable();
            $table->string('create_by_name')->nullable();
            $table->unsignedInteger('create_by')->nullable()->index();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('clue_call_logs');
    }
}
